/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f3xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "config.h"
#define LED_R_SET GPIOC->BSRR |= (1<<13<<16)
#define LED_R_RESET GPIOC->BSRR |= (1<<13)

#define LED_G_SET GPIOC->BSRR |= (1<<14<<16)
#define LED_G_RESET GPIOC->BSRR |= (1<<14)

#define LED_B_SET GPIOC->BSRR |= (1<<15<<16)
#define LED_B_RESET GPIOC->BSRR |= (1<<15)

#define RADAR_POWER_OFF GPIOA->BSRR |= (1<<15<<16)
#define RADAR_POWER_ON GPIOA->BSRR |= (1<<15)

#define RESET_ALL_LED LED_R_RESET;LED_G_RESET;LED_B_RESET
__weak void button0PressDownCallback();
void updateLCDTime();
__weak void button1PressDownCallback();

__weak void button2PressDownCallback();

__weak void button3PressDownCallback();

__weak void button0FreeCallback();

__weak void button1FreeCallback();

__weak void button2FreeCallback();

__weak void button3FreeCallback();

__weak void button0TimeReachCallback();

__weak void button1TimeReachCallback();

__weak void button2TimeReachCallback();

__weak void button3TimeReachCallback();

__weak void button0HoldCycleCallback();

__weak void button1HoldCycleCallback();

__weak void button2HoldCycleCallback();

__weak void button3HoldCycleCallback();
void kernel_button_slow_tick_1ms();

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */
void debug(char *data);
void debug_sync(char *data);
/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define Button_0_Pin GPIO_PIN_0
#define Button_0_GPIO_Port GPIOC
#define Button_0_EXTI_IRQn EXTI0_IRQn
#define Button_2_Pin GPIO_PIN_2
#define Button_2_GPIO_Port GPIOC
#define Button_2_EXTI_IRQn EXTI2_TSC_IRQn
#define Button_3_Pin GPIO_PIN_3
#define Button_3_GPIO_Port GPIOC
#define Button_3_EXTI_IRQn EXTI3_IRQn
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
